package cn.tedu.jewelry.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Product implements Serializable {
    private Long id;
    private Long categoryId;
    private Long brandId;
    private String code;
    private String title;
    private String shortTitle;
    private String content;
    private String url;
    private Long viewCount;
    private Long saleCount;
    private Long stock;
    private LocalDateTime gmtCreated;
    private String tags;
    private Integer enable;

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", categoryId=" + categoryId +
                ", brandId=" + brandId +
                ", code='" + code + '\'' +
                ", title='" + title + '\'' +
                ", shortTitle='" + shortTitle + '\'' +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", viewCount=" + viewCount +
                ", saleCount=" + saleCount +
                ", stock=" + stock +
                ", gmtCreated=" + gmtCreated +
                ", tags='" + tags + '\'' +
                ", enable=" + enable +
                '}';
    }
}
